package com.mew.lobby.message.response;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ChatInfoResponseMessage  extends ZebraBaseMessage<ChatInfoResponseMessage> {
    private Long userId; //id
    private Integer headPath;//头像
    private String nickName;//名称
    private String info;//消息体
    @Override
    public void write(ByteBuf b) {
        writeLong(b,userId);
        writeString(b,nickName);
        writeString(b,info);
    }

    @Override
    public ChatInfoResponseMessage read(ByteBuf byteBuf) {
        return null;
    }
}
